<?php

namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;
use App\Http\Controllers\Controller;
use EasyWeChat\Foundation\Application;
use Illuminate\Support\Facades\DB;

class IndexController extends Controller
{   
    public $js;
    public function __construct(Application $app) {
        $this->js = $app->js;
    }
    public function index(){
//        Redis::connection();
//        $values = Redis::command('lrange', ['name', 5, 10]);
//        $key = 'user:name:6';
//        $redis::set($key,'lily');
//        if($redis::exists($key)){
//            dd($redis::get($key));
//        }
//        $userinfo = DB::table('waihui_member')->where('id',11)->first();
//        dd($userinfo);
        return view('/home/welcome');
    }
    
    public function login(){
        return view('/home/login');
    }
}
